//
//  ZCCollectionViewCell.m
//  BaiSi
//
//  Created by 张灿 on 16/4/29.
//  Copyright © 2016年 张灿. All rights reserved.
//

#import "ZCCollectionViewCell.h"
#import <UIImageView+WebCache.h>
#import "ZCSquareItem.h"

@interface ZCCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageV;

@property (weak, nonatomic) IBOutlet UILabel *title;

@end

@implementation ZCCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setItem:(ZCSquareItem *)item
{
    _item = item;
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    self.title.text = item.name;
}

@end
